//对外暴露配置路由(常量路由):全部用户都可以访问到的路由
// ../views/home/index.vue
const rightView = () => import("../layout/right-content.vue")
const baseView = ()  => import('../layout/base-view.vue')
const index = () => import('../views/das/index.vue')
const plan = () => import('../views/plan/index.vue')
export const constantRoute = [
    {
        path: "",
        component: baseView,
        name:"首页",
        hidden: false,
        children:[
            {
                path: "/",
                component: index,
                name:"首页",
                hidden: false,
                icon: 'location'

            },
            {
                path: "/plan",
                component: plan,
                name:"蓝图",
                hidden: false,
                icon: 'location'

            },
            {
                path: "/content",
                component:rightView,
                name:"内容",
                hidden: false,
                children:[
                    {
                        path: "light.vue",
                        component: () => import('../views/content/post-editor.vue'),
                        name:"发表文章",
                        hidden: false,
                        icon: 'location'
                    },
                    {
                        path: "manage-comment.vue",
                        component: () => import('../views/content/manage-comment.vue'),
                        name:"管理",
                        hidden: false,
                        icon: 'location'
                    },
                    {
                        path: "manage-pic.vue",
                        component: () => import('../views/content/manage-pic.vue'),
                        name:"图片",
                        hidden: false,
                        icon: 'location'
                    },

                ]
            },
            {
                path: "/light",
                component:rightView,
                name:"闪电",
                hidden: false,
                children:[
                    {
                        path: "light.vue",
                        component: () => import('../views/light/light.vue'),
                        name:"闪电可视化",
                        hidden: false,
                        icon: 'location'
                    },

                    {
                        path: "tq.vue",
                        component: () => import('../views/light/tq.vue'),
                        name:"天擎数据",
                        hidden: false,
                        icon: 'location'
                    },
                ]
            }
        ]
    },


    // {
    //     path: '/',
    //     component: () => import('../layout/base-view.vue'),
    //     name:'ddd',
    //     meta: {
    //         title: 'ggg',
    //         hidden: false,
    //         icon: 'Promotion'
    //     },
    //     children:[
    //         {
    //         path: "das",
    //         name:'首页',
    //         hidden:false,
    //         component:  () => import('../views/das/index.vue'),
    //         }
    //     ]
    // },




    {
        //登录
        path: '/login',
        component: () => import('../views/login/index.vue'),
        name: 'login',
        title: '登录',//菜单标题
        hidden: true,//代表路由标题在菜单中是否隐藏  true:隐藏 false:不隐藏

    }

]
